<?php

namespace App\Http\Controllers\product;

use App\Http\Controllers\ServerController;
use Illuminate\Support\Facades\Request;

class index extends ServerController
{
    public function detail()
    {
        // 商品id
        $product_id = Request::post( 'product_id' );
        
        //模拟商品数据
        $data = [
            'title' => '某个商品',
            'product_number' => '商品编号',
            'bar_code' => '条码',
            'main_thumb' => '主图',
            'content' => '简介'
        ];

        // 返回数据
        return $this->response( [ 'status' => 1, 'message' => 'ok', 'data' => $data ] );
    }
}
